package com.fjnu.service;

import com.fjnu.entity.User;
import com.fjnu.dto.UserConditionDto;
import com.fjnu.dto.PageResult;
import java.util.List;

public interface UserService {
    User queryByName(String username);
    int register(User user);
    PageResult queryUsers(UserConditionDto userCondition, Integer pageNum, Integer pageSize);
    void addAssignRole(String userId, List roleIds);
    User login(String username, String password);
    boolean changePassword(Integer userId, String oldPassword, String newPassword);
}